/*lobby.h*/
#ifndef LOBBY_H
#define LOBBY_H

struct Lobby{
	int index;
	int replyTo;
	int msgLock;
	int myName;
	int sleepCon;
	int state;
	int repliesWaiting, msgsToSend;
	int numInLobby;
	
	int runScheduler;
	int custInLobby[MAX_CUSTOMERS/MAX_GROUP_SIZE + 1];
	int custToAsk[MAX_CUSTOMERS/MAX_GROUP_SIZE + 1];
	int numMsgs;
	struct Message tempMsg;
	struct Message msgList[3];
};

struct Message Lobby_GetMessage(int);
void Lobby_Scheduler();

void Lobby_IdleAction();
void Lobby_StartReleasing();
void Lobby_AskCount();
void Lobby_WaitCount();
void Lobby_WaitForTech();

#endif